// 商品信息
export class Goods {
  constructor(info, columns, services) {
    this.title = info.title // 标题
    this.desc = info.desc // 描述
    this.price = info.price // 价格
    this.oldPrice = info.oldPrice // 旧价格
    this.nowPrice = info.lowNowPrice // 高价
    this.discount = info.discountDesc // 折扣
    this.columns = columns // 销量、收藏...
    this.services = services // 快递服务信息
  }
}

// 商家信息
export class Shop {
  constructor(shopInfo) {
    this.logo = shopInfo.shopLogo // logo
    this.name = shopInfo.name // 名称
    this.fans = shopInfo.cFans // ???
    this.sell = shopInfo.cSells // 销量
    this.score = shopInfo.score // 评分
    this.goodsCount = shopInfo.cGoods // 全部商品
  }
}

// 商品信息
export class GoodsParams {
  constructor(info, rule) {
    this.images = info.images ? info.images[0] : ''
    this.info = info.set
    this.size = rule.tables
  }
}
